package top.v5it.japi.plus.example.jdbc.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhanpu
 * @date 2022/8/26
 */
@Configuration
public class KafkaConfiguration {

    @Bean
    NewTopic newTopic() {
        return new NewTopic("example-logs", 1, (short) 1);
    }
}
